package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 小程序二维码生成
 */
@Getter
@Setter
@Document(collection = "wxa_code")
@CompoundIndexes({
        @CompoundIndex(name = "wxa_code_comIdx",def = "{'userId':1,'activityId':1}",unique = true)
})
public class WechatACode  extends EntityBase {

    private String userId;

    private String activityId;

    private String sharedByOpenId;

    private String taskId;

    private String sharedByUserId;

    private String wxaCode;

    private String activityType;

    private String platform;

}
